package com.eqdd.yiqidian.ui.discover.workdiary

import com.eqdd.yiqidian.base.Config
import com.eqdd.yiqidian.http.HttpConfig
import com.lzy.okgo.model.HttpParams

/**
 * 部门领导查看日志
 * Created by jhj on 18-5-5.
 */

class DepartmentWorkDiaryActivity : BaseWorkDiaryActivity() {
    lateinit var id: String

    override fun title(): String {
        return "部门日志"
    }

    override fun initData() {
        id = intent.getStringExtra(Config.GUID)
        super.initData()
    }


    internal override fun getUrl(): String {
        return HttpConfig.BASE_URL + HttpConfig.DIARY_OF_DEPARTMENT
    }

    internal override fun getParams(): HttpParams? {
        val params = HttpParams()
        params.put("objecterGuid", id)
        params.put("companyId", user.companyId)
        return params
    }
}
